#ifndef _MAP_H_
#define _MAP_H_

#include "Box.h"

/**
Map represents set of blocks that are on the scene
*/
class Map
{
public:
	
	Map();
	virtual ~Map();

	int Columns(void);
	int Rows(void);

	Box* Fields(void);
	Box& Field(int x, int y);
	void SetField(int x, int y, Box& box);
	float GetHighest(void);

	/**
	Loads map from file
	return value: 
	true if successfully loaded
	false otherwise
	*/
	static bool Load(wchar_t *fileName, Map *map);
private:

	Box* fields;
	int columns, rows;
	float highest;
};

#endif